﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DayuCode.Designer.Entity
{
    public class DatasetDef
	{
		public long? Id { get; set; }
		public int? Ordnum { get; set; }
		public long? FuncId { get; set; }
		public string DatasetName { get; set; }
		public string CreateUser { get; set; }
		public DateTime? CreateTime { get; set; }
		public string CreateTimeStr { get; set; }
		public string MainTableCaption { get; set; }
		public string MainClassName { get; set; }
		public string MainBeanName { get; set; }
		public List<HDataColumn> Columns { get; set; }

		//public string IdText
  //      {
  //          get
  //          {
		//		if (Id == null) return "";
		//		string str = Id.ToString();
		//		return str;
  //          }
  //      }
		public override string ToString()
        {
			if (DatasetName == null) return "";
            return DatasetName;
        }
    }
}
